package com.xbx.baseweb.controller;

import javax.servlet.http.HttpServletRequest;

/**
 * 请求工具类
 *
 * @author 89005691
 * @create 2018-09-20 21:05
 */
public class RequesUtils {

    /**
     * 是否是AJAX请求
     */
    public static boolean requestIsAjax(HttpServletRequest request) {

        // 暂时默认返回json，不跳转页面
       /* String requestType = request.getHeader("X-Requested-With");
        if ("XMLHttpRequest".equals(requestType)) {

            return true;
        }*/

        return true;
    }
}
